/* 天气定位页面样式 */

/* 统一顶部样式 */
#Header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: rgba(255,255,255,1);
    border-style: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

#Header .tx-c {
    text-align: center !important;
}

#Header h1 {
    text-align: center !important;
}

#ScrollContent {
    background: linear-gradient(to bottom, #74b9ff 0%, #0984e3 100%);
    padding: 4.5em 0 0 0;
    min-height: 100vh;
}

/* 位置信息 */
.location-section {
    padding: 1.5em 0;
    color: #fff;
    background: rgba(255,255,255,0.1);
    margin: 1em;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

/* 天气卡片 */
.weather-card {
    background: rgba(255,255,255,0.95);
    margin: 1em;
    border-radius: 20px;
    padding: 2em;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    color: #2d3436;
}

.weather-main {
    text-align: center;
    padding: 1em 0;
}

.weather-temp {
    font-size: 4em;
    font-weight: 300;
    color: #2d3436;
    line-height: 1;
}

.weather-desc {
    font-size: 1.2em;
    color: #636e72;
    font-weight: 500;
}

.weather-icon {
    margin: 1em 0;
    color: #74b9ff;
}

.weather-details {
    background: rgba(116, 185, 255, 0.1);
    border-radius: 15px;
    padding: 1.5em;
    margin-top: 1.5em;
}

.detail-label {
    color: #636e72;
    font-size: 0.9em;
    margin-bottom: 0.5em;
}

.detail-value {
    font-size: 1.1em;
    font-weight: 600;
    color: #2d3436;
}

.update-time {
    margin-top: 1em;
    padding-top: 1em;
    border-top: 1px solid #ddd;
}

.data-info {
    margin-top: 0.5em;
    font-size: 0.8em;
    opacity: 0.7;
}

/* 天气预报 */
.forecast-section {
    background: rgba(255,255,255,0.95);
    margin: 1em;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.section-title {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: #fff;
    padding: 1em;
    font-weight: 600;
}

.forecast-list {
    background: #fff;
}

.forecast-item {
    padding: 1em;
    border-bottom: 1px solid #f1f2f6;
    transition: all 0.3s ease;
}

.forecast-item:hover {
    background: #f8f9fa;
}

.forecast-item:last-child {
    border-bottom: none;
}

.forecast-day {
    font-weight: 600;
    color: #2d3436;
    min-width: 3em;
}

.forecast-date {
    color: #636e72;
    font-size: 0.9em;
    min-width: 3em;
}

.forecast-weather {
    color: #636e72;
    min-width: 4em;
}

.forecast-temp {
    font-weight: 600;
    color: #2d3436;
    text-align: right;
}

/* 空气质量 */
.air-quality-section {
    background: rgba(255,255,255,0.95);
    margin: 1em;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.air-quality-content {
    background: #fff;
    padding: 1.5em;
}

.aqi-circle {
    width: 5em;
    height: 5em;
    border-radius: 50%;
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
    color: #fff;
    margin-right: 1.5em;
}

.aqi-value {
    font-size: 1.5em;
    font-weight: bold;
}

.aqi-label {
    font-size: 0.8em;
    opacity: 0.9;
}

.aqi-level {
    font-size: 1.2em;
    font-weight: 600;
    color: #00b894;
}

.aqi-desc {
    color: #636e72;
    line-height: 1.4em;
}

/* 生活指数 */
.life-index-section {
    background: rgba(255,255,255,0.95);
    margin: 1em;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 2em;
}

.life-index-grid {
    background: #fff;
    padding: 1em;
}

.life-index-item {
    text-align: center;
    padding: 1em 0.5em;
    margin: 0.5em;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 0;
    flex-basis: calc(33.33% - 1em);
}

.life-index-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.index-icon {
    color: #74b9ff;
    margin-bottom: 0.5em;
}

.index-name {
    font-size: 0.9em;
    color: #636e72;
    margin: 0.5em 0;
}

.index-value {
    font-weight: 600;
    color: #2d3436;
    font-size: 0.9em;
}

/* 通用样式 */
.umar-t {
    margin-top: 1em;
}

.umar-t-s {
    margin-top: 0.5em;
}

.umar-t-xs {
    margin-top: 0.3em;
}

.umar-r {
    margin-right: 0.5em;
}

.umar-b {
    margin-bottom: 1em;
}

.uinn {
    padding: 1em;
}

.t-gra {
    color: #636e72;
}

.tx-c {
    text-align: center;
}

.ulev-1 {
    font-weight: 500;
    font-size: 1em;
}

.ulev--1 {
    font-size: 0.9em;
}

/* 浮动刷新按钮 */
.refresh-weather-btn {
    position: fixed;
    bottom: 2em;
    right: 2em;
    width: 3.5em;
    height: 3.5em;
    border-radius: 50%;
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    border: none;
    color: white;
    font-size: 1.2em;
    box-shadow: 0 4px 20px rgba(116, 185, 255, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
}

.refresh-weather-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(116, 185, 255, 0.6);
}

.refresh-weather-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 15px rgba(116, 185, 255, 0.4);
}

/* 响应式设计 */
@media (max-width: 480px) {
    .weather-temp {
        font-size: 3em;
    }
    
    .life-index-item {
        flex-basis: calc(33.33% - 0.5em);
        margin: 0.25em;
        padding: 0.8em 0.3em;
    }
    
    .index-icon {
        font-size: 1.5em;
    }
    
    .refresh-weather-btn {
        bottom: 1.5em;
        right: 1.5em;
        width: 3em;
        height: 3em;
        font-size: 1em;
    }
} 